package com.mapper;

import com.pojo.User;
import com.pojo.UserExtends;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
      /*登录方法*/
 public User login(@Param("username") String username , @Param("password") String password);
    /*注册*/
    public int inserUser(User user);
    /*查询*/
    public List<User> selectUser(@Param("name") String name);
    /*通过id查看详情*/
    public User selectUserById(@Param("id") Integer id);
   //更新用户
    public int updateUser(User user);
    /*通过id删除用户*/
    public int deleteUserById(Integer id);
    List<UserExtends> selectUserList();
}

